package ee.subjects.frontend.controller.command.employeeCommands;

import ee.subjects.frontend.controller.command.Command;


public class EmployeeCommandFactory {

	public Command getCommand(String event){

		Command Command = null;

		try{
			
			if (event.equals("insert_employee")){
				Command = new InsertEmployeeCommand();
			}
			
			if (event.equals("enterprise_list_for_employees")){
				Command = new EnterpriseListForEmployees();
			}
			
			if(event.equals("ajax_employee")){
				Command = new AjaxEmployeeCommands();
			}
			
			if(event.equals("roles")){
				Command = new EmployeeRoles();
			}
			

		} catch (Exception ex){
			//TODO Logimine
			//MyLogger.Log("AutoCommandFactory.getCommand():",ex.getMessage());
		}
		return Command;
	}

}
